//
//  WBDemoViewController.swift
//  仿写微博
//
//  Created by tuimao on 17/7/4.
//  Copyright © 2017年 tuimao. All rights reserved.
//

import UIKit

class WBDemoViewController: WBBaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        navItem.title = "第\(navigationController?.childViewControllers.count ?? 0)页"
    }
    //letBaritem的点击
    @objc fileprivate func showFriend(){
        let demo = WBDemoViewController()
        navigationController?.pushViewController(demo, animated: true)
    }
 }

//设置界面
extension WBDemoViewController{
    //重写父类方法
    override func setupTableView() {
    super.setupTableView()
        navItem.rightBarButtonItem = UIBarButtonItem(title: "下一页", target: self, action: #selector(showFriend),isback: false)
        
    }
}
